package com.itheima.dao;

import com.itheima.pojo.Menu;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MenuDao {
    public List<Menu> findChildrenMenu(int id);

    @Select("select * from t_menu")
    List<Menu> findall();

    @Select("select menu_id from t_role_menu where role_id=#{id}")
    List<Integer> findMenuByRoleId(int id);
}
